package com.kaka.bus.bean;

/**
 * Created by zhangqi on 2017/1/4.
 */

public class IDCardFrontBean {


    /**
     * time_used : 320
     * request_id : 1457432550,b70ab3a8-ee37-4f90-a2bd-007e23a970e2
     * address : 北京市海淀区XXXX
     * birthday : {"day":"2","month":"6","year":"1991"}
     * head_rect : {"lt":{"x":0.619915,"y":0.19362},"rt":{"x":0.921812,"y":0.198438},"rb":{"x":0.927187,"y":0.737717},"lb":{"x":0.621641,"y":0.735261}}
     * gender : 男
     * id_card_number : xxxxxx19910602xxxx
     * name : 陈XX
     * race : 汉
     * side : front
     */
    private String error;

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    private int time_used;
    private String request_id;
    private String address;
    private BirthdayBean birthday;
    private HeadRectBean head_rect;
    private String gender;
    private String id_card_number;
    private String name;
    private String race;
    private String side;
    /**
     * issued_by : 北京市公安局海淀分局
     * valid_date : 2010.11.13-2020.11.13
     */

    private String issued_by;
    private String valid_date;

    public void setTime_used(int time_used) {
        this.time_used = time_used;
    }

    public void setRequest_id(String request_id) {
        this.request_id = request_id;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setBirthday(BirthdayBean birthday) {
        this.birthday = birthday;
    }

    public void setHead_rect(HeadRectBean head_rect) {
        this.head_rect = head_rect;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public void setId_card_number(String id_card_number) {
        this.id_card_number = id_card_number;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setRace(String race) {
        this.race = race;
    }

    public void setSide(String side) {
        this.side = side;
    }

    public int getTime_used() {
        return time_used;
    }

    public String getRequest_id() {
        return request_id;
    }

    public String getAddress() {
        return address;
    }

    public BirthdayBean getBirthday() {
        return birthday;
    }

    public HeadRectBean getHead_rect() {
        return head_rect;
    }

    public String getGender() {
        return gender;
    }

    public String getId_card_number() {
        return id_card_number;
    }

    public String getName() {
        return name;
    }

    public String getRace() {
        return race;
    }

    public String getSide() {
        return side;
    }

    public void setIssued_by(String issued_by) {
        this.issued_by = issued_by;
    }

    public void setValid_date(String valid_date) {
        this.valid_date = valid_date;
    }

    public String getIssued_by() {
        return issued_by;
    }

    public String getValid_date() {
        return valid_date;
    }

    public static class BirthdayBean {
        /**
         * day : 2
         * month : 6
         * year : 1991
         */

        private String day;
        private String month;
        private String year;

        public void setDay(String day) {
            this.day = day;
        }

        public void setMonth(String month) {
            this.month = month;
        }

        public void setYear(String year) {
            this.year = year;
        }

        public String getDay() {
            return day;
        }

        public String getMonth() {
            return month;
        }

        public String getYear() {
            return year;
        }

        @Override
        public String toString() {
            return year + "-" + month + "-" + day;
        }
    }

    public static class HeadRectBean {
        /**
         * lt : {"x":0.619915,"y":0.19362}
         * rt : {"x":0.921812,"y":0.198438}
         * rb : {"x":0.927187,"y":0.737717}
         * lb : {"x":0.621641,"y":0.735261}
         */

        private LtBean lt;
        private RtBean rt;
        private RbBean rb;
        private LbBean lb;

        public void setLt(LtBean lt) {
            this.lt = lt;
        }

        public void setRt(RtBean rt) {
            this.rt = rt;
        }

        public void setRb(RbBean rb) {
            this.rb = rb;
        }

        public void setLb(LbBean lb) {
            this.lb = lb;
        }

        public LtBean getLt() {
            return lt;
        }

        public RtBean getRt() {
            return rt;
        }

        public RbBean getRb() {
            return rb;
        }

        public LbBean getLb() {
            return lb;
        }

        public static class LtBean {
            /**
             * x : 0.619915
             * y : 0.19362
             */

            private double x;
            private double y;

            public void setX(double x) {
                this.x = x;
            }

            public void setY(double y) {
                this.y = y;
            }

            public double getX() {
                return x;
            }

            public double getY() {
                return y;
            }
        }

        public static class RtBean {
            /**
             * x : 0.921812
             * y : 0.198438
             */

            private double x;
            private double y;

            public void setX(double x) {
                this.x = x;
            }

            public void setY(double y) {
                this.y = y;
            }

            public double getX() {
                return x;
            }

            public double getY() {
                return y;
            }
        }

        public static class RbBean {
            /**
             * x : 0.927187
             * y : 0.737717
             */

            private double x;
            private double y;

            public void setX(double x) {
                this.x = x;
            }

            public void setY(double y) {
                this.y = y;
            }

            public double getX() {
                return x;
            }

            public double getY() {
                return y;
            }
        }

        public static class LbBean {
            /**
             * x : 0.621641
             * y : 0.735261
             */

            private double x;
            private double y;

            public void setX(double x) {
                this.x = x;
            }

            public void setY(double y) {
                this.y = y;
            }

            public double getX() {
                return x;
            }

            public double getY() {
                return y;
            }
        }
    }
}
